//
//  MJAlertView.h
//  OrderSys
//
//  Created by JM on 15/10/11.
//  Copyright © 2015年 zjlskj. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#if NS_BLOCKS_AVAILABLE
typedef void (^SNTAlertViewClickedBlock)(NSInteger);
#endif

//一个快速使用UIAlertView的子类
//使用方法：
//不需要再实现UIAlertViewDelegate方法
//直接指定回调对象和方法
@interface MJAlertView : UIAlertView <UIAlertViewDelegate>
{
}

+ (id)showAlertViewWithTitle:(NSString*)title
                     message:(NSString*)message
                      target:(id)target
       clickedButtonSelector:(SEL)clickedButtonSelector
           cancelButtonTitle:(NSString*)cancelButtonTitle
           otherButtonTitles:(NSString *)otherButtonTitles, ...;


#if NS_BLOCKS_AVAILABLE
+ (id)showAlertViewWithTitle:(NSString*)title
                     message:(NSString*)message
          clickedButtonBlock:(SNTAlertViewClickedBlock)clickedButtonBlock
           cancelButtonTitle:(NSString*)cancelButtonTitle
           otherButtonTitles:(NSString*)otherButtonTitles, ...;
#endif




@end
